import axios from "../axios";

export function getArticleList(){
    return axios.get(`/blog/article`).then((resp)=>resp.data);
}
export function getArticleById(id){
    return axios.get(`/blog/article/${id}`).then((resp)=>resp.data);
}
export function getHotArticleList(){
    return axios.get(`/blog/article/hotArticle`).then((resp)=>resp.data);
}